TsgDXFConverter
Unit: DXFConv
Class Hierarchy
Description
The TsgDXFConverter
class provides the list of entities (made on the TsgDXFEntity
base), loaded from a CAD file. This is the manager class. The TsgDXFConverter
class implements the main operations of the import.
This class is intended for:
- Displaying DXF/DWF/DWG/HPGL/HPGL2/SVG/CGM files on a screen that marketed in
TsgCADImage
,TsgCADdxfImage
,TsgDWFImage
,TsgDWGImage
,TsgHPGLImage
,TsgSVGImage
,TsgCGMImage
. - Accessing to the section of elements, for what indexed properties Tables, Blocks and Entities are used
Syntax
TsgDXFConverter = class;
Properties
Properties | Description |
---|---|
AllArcsAsCurves | The property sets/gets arcs converting mode. |
Angle | The property specifies an angle of the turn around of the global Z-axis. |
AutoInsert | The property specifies the block references (INSERTs ) processing in the Iterate method. |
Blocks | The property realizes the indexed access to block. |
CircleZoomPercent | The property sets/gets arcs converting mode. |
CodePage | The property returns code page written in a file. |
Counts | The property indicates the number of elements in the specified section. |
DefaultLayoutIndex | The property returns the index of the active LAYOUT . |
DimensionStyles | The property returns the TsgDXFDimensionStyle object. |
DisplayImageFrame | The property gets or sets a value indicating whether to display image frame. |
Entities | The property contains entities loaded from the CAD file. |
Extents | The property returns drawing extents describing in the DXF-file header. |
FieldList | The property gets a list of fields in the OBJECTS section of the DXF file. |
FileName | The property gets or sets name of the file for loading. |
HeadEnd | The property gets or sets end of the file header section. |
HeadVarStruct | The property sets or gets the TsgHeadVarStruct structure. |
HideWipeouts | The property specifies if the borders of the TsgCADWipeout objects are hidden. |
ImageDefs | The property returns the TsgDXFImageDef entity specified by the Index number. |
ImportMode | The property is the ViewPort model showing mode. |
Is3D | The property determines if the loaded CAD file is three-dimensional. |
IsCrossoverMatrix | The property gets or sets the value indicating orientation of the used coordinate system. |
IsHaveActiveVPort | The property indicates, does converter have the active VPort . |
LScale | The property displays global linetype scale. |
LTypes | The property contains the linetypes loaded from the CAD file. |
Layers | The property contains the layers loaded from the CAD file. |
Layouts | The property returns the layout with the specified index. |
LayoutsCount | The property is the layouts quantity. |
Main | The property is the main section and includes all other sections. |
MaxEntities | The property is the maximum possible count of loaded entities. |
MaxHandle | the property gets or sets the maximal handle of an entity. |
NumberOfPartsInCircle | The property is the circle drawing quality. |
NumberOfPartsInSpline | The property is the spline drawing quality. |
Objects | The property gets the OBJECTS section of the DXF file. |
OwnSource | The property is for internal uses. |
PaperSpace | The property specifies which entities space is used. |
Params | The property sets drawing parameters. |
PointDisplayMode | The property gets or sets the value indicating the mode of displaying TsgDXFPoint entities in the loaded CAD file. |
SHXFonts | The property returns the TsgSHXFontList object. |
Sections | The property contains the sections loaded from the CAD file. |
Source | The property gets or sets source of the CAD file. |
Styles | The property returns the TsgDXFStyle object. |
Tables | The property realizes the indexed access to all table, described in TABLES of the DXF file or loaded from other supported CAD files. |
UseSHXFonts | The property specifies if the SHX fonts will be used. |
ViewPortCut | If True the drawing occurs inside of viewport. |
VPort | The property is the view direction from the target point. |
XRefSearchPath | The property gets or sets the secondary search path where the XRef files are searched forcibly. |
XRefSearchPaths | The property gets the list of search paths for the XREF entities. |
XRefs | The property gets the list of external references to the DWG/DXF files. |
Methods
Methods | Description |
---|---|
AddLayout | The method adds the TsgDXFLayout object. |
AddXRef | The method adds the TsgDXFXref object. |
AddXRefEx | The method adds the TsgDXFXref object. |
BlockByName | The method searches the TsgDXFBlock object by name and returns it if it exists. |
CleaningLayouts | The method deletes all empty instances of TsgDXFLayout class with the exception of the Model_Space LAYOUT . |
Clear | The method deletes all items from the list. |
Count | The method returns total number of loaded entities. |
Create | The method creates a new TsgDXFConverter object. |
DeleteBlock | The method deletes the TsgDXFBlock object. |
DeleteDimStyle | The method deletes dimension style if DoFree is true . |
DeleteLayout | The method deletes layout if it's not a model layout. |
Destroy | The method destroy an instance of the TsgDXFConverter object. |
DimensionStyleByName | The method adds object of the TsgDXFDimensionStyle object. |
DoExtents | The method counts dimensions of drawing. |
ExtractFromTable | The method removes AEntity from ATable . |
GenerateModelViewPort | The method creates, initializes and returns the TsgDXFViewPort object for Model_Space LAYOUT . |
GetLScale | The method returns global linetype scale. |
GetLayerNames | The method populates a list with names of the layers. |
GetTransform3d | The method is for internal uses. |
GetUCS | The method returns the TFMatrix object that determines users coordinates system. |
InitializeSections | The method makes necessary initializations for sections. |
Iterate | The method calls the Proc procedure for each existing entity. |
LTypeByName | The method returns linetype with AName or nil if the linetype with such name does not exist. |
LayerByName | The method returns layer with the name specified in AName . |
LayoutByName | The method returns the TsgDXFLayout object by its name if it exists. |
LinesByName | The method returns the linetype with name AName , or nil if lines with such name does not exist. |
Load | The method loads the DXF file. |
Loads | The method processes the special protected Loaded method with the E entity and increments the Count property. |
LoadsByClasses | The method calls Loads for all entities from entities list and their ancestors. |
NewEntity | The method adds new entity to AOwner . |
Pos | The method returns index of the current position in the Source property. |
Reference | The method increments the number of references to instance of the TsgDXFConverter class that are currently in use. |
Release | The method decrements the number of references to instance of the TsgDXFConverter class that are currently in use. |
RemoveEntity | The method deletes the entity. |
SetSourceStream | The method is for internal uses. |
SetTransform3d | The method is for internal uses. |
SortEntities | The method sorts entities. |
SortEntitiesByHandle | The method sorts entities in list by handles. |
SortEntitiesInZDepth | The method sorts entities by Z coordinate parameter. |
StopLoading | The method terminates the DXF file loading. |
StyleByName | The method adds TsgDXFStyle object. |
ViewTwistMatrix | The method returns the rotation matrix of view. |
Events
Events | Description |
---|---|
AfterRead | The event occurs after reading a DXF file. |
BeforeRead | The event occurs before reading a DXF file. |
OnCreate | The event event occurs when new is loaded from a CAD file. |
OnRead | The event occurs while reading every element of a CAD file. |